Builder
constructor(applicationContext: Context = ApplicationHolder.applicationContext, bluetoothScanner: BluetoothLeScannerCompat = BluetoothLeScannerCompat.getScanner(), bluetoothAdapter: BluetoothAdapter? = (applicationContext.getSystemService(Context.BLUETOOTH_SERVICE) as? BluetoothManager)?.adapter, scanSettings: ScanSettings = defaultScanSettings)
Parameters
applicationContext
the Context in which Bluetooth should run
bluetoothScanner
the BluetoothLeScannerCompat to use for scanning
bluetoothAdapter
the BluetoothAdapter to use to access Bluetooth
scanSettings
the ScanSettings to apply to the scanner